package com.adams.custom.page.mgt.service.impl;

import org.apache.log4j.Logger;

import com.adams.core.exception.BusinessException;
import com.adams.custom.page.core.BusinessDealFlowAction;
import com.adams.custom.page.core.BusinessDealFlowContext;
import com.adams.custom.page.mgt.dao.impl.ViewItemDaoImpl;
import com.adams.custom.page.mgt.service.ViewParseService;

public class UpdateViewItemBusinessDeal implements BusinessDealFlowAction
{
	Logger logger = Logger
			.getLogger(UpdateViewItemBusinessDeal.class.getName());
	/**
	 * Description : 页面信息项实体数据访问实现类 Author : 904370
	 */
	private ViewItemDaoImpl viewItemDaoImpl;

	/**
	 * Description : 界面服务接口 Author : 904370
	 */
	private ViewParseService viewParseService;

	public void setViewItemDaoImpl(ViewItemDaoImpl viewItemDaoImpl)
	{
		this.viewItemDaoImpl = viewItemDaoImpl;
	}

	public void setViewParseService(ViewParseService viewParseService)
	{
		this.viewParseService = viewParseService;
	}

	@Override
	public Object invoke(BusinessDealFlowContext businessContext,
			Object resultObject) throws BusinessException
	{
		logger.info("UpdateViewItemBusinessDeal invoke method run begin.");
		viewItemDaoImpl.synchronizationCache();
		viewParseService.synchronizationCache();
		// TODO Auto-generated method stub
		logger.info("UpdateViewItemBusinessDeal invoke method run end.");
		return null;
	}

}
